<link rel="stylesheet" href="__PUBLIC__/lib/photoswipe/photoswipe.css">
<link rel="stylesheet" href="__PUBLIC__/lib/photoswipe/default-skin/default-skin.css">
<script src="__PUBLIC__/lib/photoswipe/photoswipe.min.js"></script>
<script src="__PUBLIC__/lib/photoswipe/photoswipe-ui-default.min.js"></script>

<div style="background-color: #E5E5E5">
    <!--基本信息-->
    <section class="mb8">
        <div class="house-xf">
            <h1>
                <a id="wapxfxqy_C02_03" href="javascript:void(0);" class="icon-fav" style="display:block;" name-value="" name=""></a>
                <a id="wapxfxqy_C02_02" href="javascript:void(0);" class="icon-share js_wap_share" style="position: relative;"></a>
                <span id="projname">{$DataHouse['HouseName']}</span> </h1>
            <div class="xqBox">
                <div class="lp-price">
                <span id="price" class="f18 red-df">
				 {$DataHouse['BeginPrice']|ValIsNull='BeginPrice'}
				</span>
                    <a id="wapxfxqy_C02_04" c href="/tools/" class="icon-jsq"></a>
                <br>
                    <br>
                 <span class="f18 red-df">
                   <a href="tel:{$DataHouse['SellHotTel']}"  class="red-df">电话：{$DataHouse['SellHotTel']}</a>
				</span>
                </div>
                <ul class="flextable row">
                    <li id="wapxfxqy_B02_19">
                        <span>开<i style="margin-right:1em;"></i>盘：</span>
                        <p>{$DataHouse['kpsj']}</p>
                    </li>

                    <li style="line-height: 2;">
                        <span>地<i style="margin-right:1em;"></i>址：</span>
                        <p>
                            <a href=" /index.php/?m=Map&a=map&StrHouseName={$DataHouse['HouseName']}&StrLonLat={$DataHouse['ditu']}" class="arr-rt" style="display:block;color:#333;">
                                {$DataHouse['HouseAddress']}
                            </a>
                        </p>
                    </li>

                </ul>

                <!--详细信息beg-->
                <ul class="flextable row mb8" id="flextableID" style="display: none;">

                    <li><span>入住时间：</span><p>{$DataHouse['rzsj']|ValIsNull='rzsj'}</p></li>
                    <li><span>物业类型：</span><p>{$DataHouse['wylx']|ValIsNull='wylx'}</p></li>
                    <li><span>建筑结构：</span><p>{$DataHouse['jiegou']|ValIsNull='jiegou'}</p></li>
                    <li><span>装修状况：</span><p>{$DataHouse['jfbz']|ValIsNull='jfbz'}</p></li>
                    <li><span>住<i style="margin-right:.5em;"></i>户<i style="margin-right:.5em;"></i>数：</span><p>{$DataHouse['zhongshu']|ValIsNull='zhongshu'}</p></li>
                    <li><span>容<i style="margin-right:.5em;"></i>积<i style="margin-right:.5em;"></i>率：</span><p>{$DataHouse['rongji']|ValIsNull='rongji'}</p></li>
                    <li><span>绿<i style="margin-right:.5em;"></i>化<i style="margin-right:.5em;"></i>率：</span><p>{$DataHouse['liuhua']|ValIsNull='liuhua'}</p></li>
                    <li><span>停<i style="margin-right:.5em;"></i>车<i style="margin-right:.5em;"></i>位：</span><p>{$DataHouse['cwck']|ValIsNull='cwck'}</p></li>
                    <li><span>产权年限：</span><p>{$DataHouse['tdsynx']|ValIsNull='tdsynx'}</p></li>
                    <li class="l"></li>
                    <li><span>开<i style="margin-right:.5em;"></i>发<i style="margin-right:.5em;"></i>商：</span><p>{$DataHouse['Developer']|ValIsNull='Developer'}</p></li>
                    <li><span>预售许可证：</span><p>{$DataHouse['yusou']|ValIsNull='yusou'}</p></li>
                    <li><span>物业公司：</span><p>{$DataHouse['wuye']|ValIsNull='wuye'}</p></li>
                    <li><span>物<i style="margin-right:.5em;"></i>业<i style="margin-right:.5em;"></i>费：</span><p>{$DataHouse['wuyefei']|ValIsNull='wuyefei'}</p></li>
                </ul>
                <!--详细信息end-->

                <p>
                    <a id="wapxfxqy_C02_05" href="javascript:void(0);" class="btn-more f13" style="display: inline-block;">更多详细信息</a>
                    <a id="btnUp" href="javascript:void(0);" class="btn-more up f13" style="display: none;">收起</a>
                </p>


            </div>
            <div class="lp-tz-box">
                <!--<a id="wapxfxqy_C02_06" href="javascript:void(0);" data-name="降价,jiangjia"><img src="">降价通知</a>-->
                <!--<a id="wapxfxqy_C02_07" href="javascript:void(0);" data-name="开盘,kaipan"><img src="">开盘通知</a>-->
            </div>
        </div>
    </section>
    <!--基本信息-->

    <!--购房团购-->
    <section class="mb8">
        <div class="lp-hd-box">
            <div class="mTitle con">
                <h2>看房团</h2>
                <span class="gray-5" style="font-size:10px;"></span>
            </div>
            <dl class="bb">
                <dd>
                    <a id="wapxfxqy_C03_10" href="{:U('Home/houseApply',array('Hid'=>$DataHouse['HID']))}">
                        <p></p>
                        <p><span class="red-s-btn flor">立即报名</span>独享会员团购优惠	看房活动专车直达</p>
                    </a>
                </dd>
            </dl>
        </div>
    </section>
    <!--购房团购-->

    <!--Map地址-->
    <section class="mb8">

        <ul class="xqTlist pdX14">
            <li><a href="/index.php/?m=Map&a=map&StrHouseName={$DataHouse['HouseName']}&StrLonLat={$DataHouse['ditu']}" class="arr-rt">地址：<span>
	        		{$DataHouse['HouseAddress']}
					</span></a></li>
        </ul>

        <div class="xqMap" id="wapxfxqy_C07_01">
            <a href="/index.php/?m=Map&a=map&StrHouseName={$DataHouse['HouseName']}&StrLonLat={$DataHouse['ditu']}">
                <img src="//api.map.baidu.com/staticimage?width=300&amp;height=130&amp;zoom=13&amp;markers={$DataHouse['ditu']}&amp;markerStyles=m,Y" width="100%" alt="">
                <span class="maptxt">{$DataHouse['HouseName']}</span>
            </a>
        </div>

        <ul class="xqTlist pdX14">
            <li>
                <a id="wapxfxqy_C07_02" href="/index.php/?m=Map&a=map&StrHouseName={$DataHouse['HouseName']}&StrLonLat={$DataHouse['ditu']}" class="arr-rt">周边配套：<span>地铁、公交、学校、医院、银行...</span></a></li>
        </ul>
    </section>
    <!--Map地址-->

    <!--动态-->
    <section class="mb8">
    <div class="review-box">
        <h2>楼盘动态</h2>

        <if condition=" count ($DataHouseInfo) lt 1 ">
            <div class="blank-content">
                <div class="promit">
                    <span class="blank-icon"></span>
                    <span>暂无新闻！</span>
                </div>
            </div>
            <else/>
            <ul class="new-list">
                <foreach name="DataHouseInfo" item="houseInfo">
                    <li><a href="{$houseInfo['id']|getHomeArtUrl}">{$houseInfo['Title']}</a></li>
                </foreach>
            </ul>
        </if>
    </div>
    </section>
    <!--动态-->

    <section class="mb8">
        <div class="review-box">
            <ul class="news_tab j_navTab" id="housePicTab">
                <li class="news_tab_nav  on">效果图</li>
                <li class="news_tab_nav ">户型图</li>
                <li class="news_tab_nav ">实景图</li>
                <li class="news_tab_nav ">其他</li>
            </ul>

            <div class="news_items_module_wrap" id="housePicCon">
                <div class="news_items_module">

                <!--效果-->
                <div class="slide_box" data-index="0" id="xgimg">
                    <foreach name="DataHouse['xgimgArr']" item="xgimg">

                        <div class="j_slide_card" data-type = "xgimg">
                            <a href="javascript:void(0)" class="img">
                                <img src="{$Think.config.APP_WEB_URL}{$xgimg[1]}" alt="">
                                <div class="img_t">
                                    {$xgimg[0]}
                                </div>
                            </a>
                        </div>
                    </foreach>
                </div>
                </div>
                <!--户型-->
                <div class="news_items_module hide">
                    <div class="slide_box" data-index="0" id="hximg">
                        <foreach name="DataHouse['hximgArr']" item="hximg">

                            <div class="j_slide_card" data-type = "hximg">
                                <a href="javascript:void(0)" class="img">
                                    <img src="{$Think.config.APP_WEB_URL}{$hximg[1]}" alt="">
                                    <div class="img_t">
                                        {$hximg[0]}
                                    </div>
                                </a>
                            </div>
                        </foreach>
                    </div>
                </div>
                <!--实景-->
                <div class="news_items_module hide">
                    <div class="slide_box" data-index="0" id="sjimg">
                        <foreach name="DataHouse['sjimgArr']" item="sjimg">

                            <div class="j_slide_card" data-type = "sjimg">
                                <a href="javascript:void(0)" class="img">
                                    <img src="{$Think.config.APP_WEB_URL}{$sjimg[1]}" alt="">
                                    <div class="img_t">
                                        {$sjimg[0]}
                                    </div>
                                </a>
                            </div>
                        </foreach>
                    </div>
                </div>
                <!--其他-->
                <div class="news_items_module hide">
                    <div class="slide_box" data-index="0" id="qtimg">
                        <foreach name="DataHouse['qtimgArr']" item="qtimg">

                            <div class="j_slide_card" data-type = "qtimg">
                                <a href="javascript:void(0)" class="img">
                                    <img src="{$Think.config.APP_WEB_URL}{$qtimg[1]}" alt="">
                                    <div class="img_t">
                                        {$qtimg[0]}
                                    </div>
                                </a>
                            </div>
                        </foreach>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 图片显示详情 -->
    <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

        <!-- Background of PhotoSwipe.
             It's a separate element, as animating opacity is faster than rgba(). -->
        <div class="pswp__bg"></div>

        <!-- Slides wrapper with overflow:hidden. -->
        <div class="pswp__scroll-wrap">

            <!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
            <!-- don't modify these 3 pswp__item elements, data is added later on. -->
            <div class="pswp__container">
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
            </div>

            <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
            <div class="pswp__ui pswp__ui--hidden">

                <div class="pswp__top-bar">

                    <!--  Controls are self-explanatory. Order can be changed. -->

                    <div class="pswp__counter"></div>

                    <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>



                    <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                    <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                    <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                    <!-- element will get class pswp__preloader--active when preloader is running -->
                    <div class="pswp__preloader">
                        <div class="pswp__preloader__icn">
                            <div class="pswp__preloader__cut">
                                <div class="pswp__preloader__donut"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                    <div class="pswp__share-tooltip"></div>
                </div>

                <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
                </button>

                <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
                </button>

                <div class="pswp__caption">
                    <div class="pswp__caption__center"></div>
                </div>

            </div>

        </div>

    </div>
    <!-- /图片显示详情 -->

    <section class="mb8">
        <div class="review-box">

        <div class="con_tab_div">
            <!--效果-->
            <div class="slide_box" id="houseInfoTab">
                <div class="con_tab_nav on">
                    项目介绍
                </div>
                <div class="con_tab_nav">
                    周边配套
                </div>
                <div class="con_tab_nav">
                    交通状况
                </div>
                <div class="con_tab_nav">
                    建材装修
                </div>
                <div class="con_tab_nav">
                    楼层状况
                </div>
                <div class="con_tab_nav">
                    车位信息
                </div>
                <div class="con_tab_nav">
                    相关信息
                </div>
            </div>

        </div>



            <div class="con_tab_con" id="houseInfoCon" style="min-height: 150px">
                <!--项目介绍-->
                <div class="news_items_module">
                    {$DataHouse['jianjie']|FilterHtml}
                </div>
                <!--周边配套-->
                <div class="news_items_module hide">
                    {$DataHouse['zbpeitao']|FilterHtml}
                </div>
                <!--交通状况-->
                <div class="news_items_module hide">
                    {$DataHouse['TrafficStatus']|FilterHtml}
                </div>
                <!--建材装修-->
                <div class="news_items_module hide">
                    {$DataHouse['xmzzd']|FilterHtml}
                </div>
                <!--楼层状况-->
                <div class="news_items_module hide">
                    {$DataHouse['lczk']|FilterHtml}
                </div>
                <!--车位信息-->
                <div class="news_items_module hide">
                    {$DataHouse['cwck']|FilterHtml}
                </div>
                <!--相关信息-->
                <div class="news_items_module hide">
                    占地面积:{$DataHouse['Mianji']|FilterHtml} 平方米<br>
                    建筑面积:{$DataHouse['jzMianji']|FilterHtml} 平方米<br>
                    预售证:{$DataHouse['yusou']|FilterHtml}<br>
                    总户数:{$DataHouse['zhongshu']|FilterHtml}<br>
                    开发商:{$DataHouse['Developer']|FilterHtml}<br>
                </div>
            </div>

        </div>
    </section>

    <div class="smBox" style="margin-top: -10px;">
        <p>免责声明：楼盘信息由开发商提供，最终以政府部门登记备案为准，请谨慎核查。</p>
    </div>
</div>
<script src="__PUBLIC__/js/zepto.min.js"></script>
<script src="__PUBLIC__/js/touch.js"></script>
<script>

    Zepto(function($){

        $('.j_slide_card').click(function(){
             var type =  $(this).data("type");
             var typediv =  $('#'+type+' > div');
             var index = $(this).index();

            var items = new Array();
            typediv.each(function(index){

                var img = $(this).find('img');

                var item = new Object();
                item.src =  img[0].src;
                item.w = img[0].naturalWidth;
                item.h = img[0].naturalHeight;
                items.push(item);
            })

            var pswpElement = document.querySelectorAll('.pswp')[0];

            var options = {
                // history & focus options are disabled on CodePen
                index:index,
                history: false,
                focus: false,

                showAnimationDuration: 0,
                hideAnimationDuration: 0

            };

            var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
            gallery.init();

        });

        $('#housePicTab li').click(function(){
            var houseIndex =   $(this).index();
            var housePic =  $('#housePicCon > div');

            $('#housePicTab li').removeClass('on');
            $(this).addClass('on');

            housePic.hide();

            housePic.each(function(index){
                $(this).hide();
                if(index == houseIndex){
                    $(this).show();
                }else{

                }
            });

        });

        $('#houseInfoTab .con_tab_nav').click(function(){
            var houseIndex =   $(this).index();
            var housePic =  $('#houseInfoCon > div');

            $('#houseInfoTab .con_tab_nav').removeClass('on');
            $(this).addClass('on');

            housePic.hide();

            housePic.each(function(index){
                $(this).hide();
                if(index == houseIndex){
                    $(this).show();
                }else{

                }
            })
        });


    });
</script>